Page({
    data: {
        userinfo: {}
    },
    onShow() {
        const userinfo = wx.getStorageSync("userinfo");
        this.setData({
            userinfo
        })
    },
    handleGetuserinfo(e) {
        const userinfo = e.detail.userInfo
        wx.setStorageSync("userinfo", userinfo);
        this.setData({
            userinfo
        })

    },
    handlecall(e) {
        wx.makePhoneCall({
            phoneNumber: '400-618-4000' //仅为示例，并非真实的电话号码
        })
    }
})